<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/CoverReport.master" AutoEventWireup="true" CodeFile="NamespaceClassReport.aspx.cs" Inherits="ContentPages_NamespaceClassReport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 
    <div id="rightColumn"> 
  <div id="rightTop">
  <span id="header">Coverage report for &nbsp;<asp:Label ID="lblprojName" runat="server"></asp:Label></span> <span id="date"> <asp:Label ID="lblTime" runat="server" CssClass="" ></asp:Label></span>
      <div id="headerStatement">
       <table border="0" cellpadding="0" cellspacing="0" class="coverageReport">
       <tr>
             <th colspan="6" style="height: 15px">
              Statistics of &nbsp;<asp:Label ID="lblStatsName" runat="server" ></asp:Label>
             </th>   
       </tr>             
            
              <tr>
                  <th>
                      Covered</th>
                  <th>
                  </th>
                  <th colspan="2">
                      Non-covered</th>
                  <th colspan="2">
                      General Details</th>
              </tr>
              <tr>
                  <th>
                      &nbsp;</th>
                  <th>
                      &nbsp;</th>
                  <th>
                      &nbsp;</th>
                  <th>
                      &nbsp;</th>
                  <th>
                      &nbsp;</th>
                  <th>
                      &nbsp;</th>
              </tr>
              <tr>
                  <td>
                      Lines</td>
                  <td align="right">
                      <asp:Label ID="lblCovLines" runat="server" Text="" CssClass="LableStatisticsData"></asp:Label>
                  </td>
                  <td>
                      Lines</td>
                  <td align="right" >
                      <asp:Label ID="lblNCLines" runat="server" Text="" CssClass="LableStatisticsData"></asp:Label>
                  </td>
                  <td>
                      Method / Class</td>
                  <td align="left" >
                      <asp:Label ID="lblMethodsPerClass" runat="server" CssClass="LableStatisticsData"></asp:Label>
                  </td>
              </tr>
              <tr>
                  <td>
                      Lines (partially)</td>
                  <td align="right">
                      <asp:Label ID="lblParCovLines" runat="server" Text="" 
                        CssClass="LableStatisticsData"></asp:Label>
                  </td>
                  <td>
                      Blocks</td>
                  <td align="right" >
                      <asp:Label ID="lblNCBlocks" runat="server" Text="" CssClass="LableStatisticsData"></asp:Label>
                  </td>
                  <td>
                      &nbsp;</td>
                  <td>
                      &nbsp;</td>
              </tr>
              <tr>
                  <td>
                      Classes</td>
                  <td align="right" >
                      <asp:Label ID="lblCovClasses" runat="server" Text="" CssClass="LableStatisticsData"></asp:Label>
                  </td>
                  <td>
                      Classes</td>
                  <td align="right">
                      <asp:Label ID="lblNClasses" runat="server" CssClass="LableStatisticsData"></asp:Label>
                  </td>
                  <td>
                      &nbsp;</td>
                  <td>
                      &nbsp;</td>
              </tr>
              <tr>
                  <td>
                      Blocks</td>
                  <td align="right"  >
                      <asp:Label ID="lblCovBlocks" runat="server" Text="" CssClass="LableStatisticsData"></asp:Label>
                  </td>
                  <td>
                      </td>
                  <td>
                      </td>
                  <td>
                      </td>
                  <td>
                      </td>
              </tr>
          </table>
          </div>
             </div>
          <!-- right bottom -->
 <div id="rightBottom">
 <div id="rightInside">
 <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
  <ContentTemplate>
 <asp:GridView ID="gvNsLvlClsCovAggregate" runat="server" CssClass="GridViewMetricsStyle" 
          AutoGenerateColumns="False" GridLines="Both" 
         onrowcommand="gvNsLvlClsCovAggregate_RowCommand" 
          onrowdatabound="gvNsLvlClsCovAggregate_RowDataBound"  >
      <RowStyle CssClass="GridRowStyle" />
                            <FooterStyle CssClass=""  />
                            <PagerStyle CssClass="" HorizontalAlign="Center"  />
                            <SelectedRowStyle CssClass=""  />
                            <HeaderStyle CssClass="GridViewAggregateHeaderStyle"  />
                            <EditRowStyle CssClass="" />
                            <AlternatingRowStyle CssClass="GridAlternateRowStyle"  />  
                             <Columns>          
            
            
            <asp:TemplateField HeaderText="Namespace Name" HeaderStyle-Wrap="true" HeaderStyle-Width="400" ItemStyle-HorizontalAlign = "Left">
                <ItemTemplate>
                 <table>
                        <tr> 
                            <td style="width:380px;font-weight:bold">
                                <asp:Label ID="lblNmsName" CssClass="" runat="server" text='<%# Bind("NamespaceName")%>'></asp:Label>
                            </td>
                            <td style="width:20px;text-align:right" align="right">
                                <asp:ImageButton ID="imgCloud" runat="server" ImageUrl="../App_Themes/ReportThemes/images/cloud.bmp" CommandName="OpenCloud" CommandArgument='<%# gvNsLvlClsCovAggregate.Rows.Count.ToString() %>'   />                                                                 
                                 
                            </td>
                        </tr>
                    </table>  
                </ItemTemplate> 
            </asp:TemplateField>    
                     
            <asp:TemplateField HeaderText="Total Coverage" HeaderStyle-Wrap="true" HeaderStyle-Width="200" ItemStyle-HorizontalAlign="Right"   >
                <ItemTemplate>
                    <table id="Table1" class="" runat="server" >
                        <tr>
                            <td style="width:50px" id="totalCover" runat="server" align="right" >
                                <asp:Label ID="lbltotcov" CssClass="CovPercentAlignment"  runat="server" text='<%# TruncateDouble((double)Eval("CovPercentage"))%>'></asp:Label> 
                            </td>
                            <td style="width:150px" align="right" >
                                <asp:Label ID="lblMajor" runat="server" CssClass="LabelMajor"  Width='<%# SetLblMajorWidth((double)Eval("CovPercentage"))%>'>&nbsp;</asp:Label><asp:Label ID="lnlMinor" runat="server" CssClass="LabelMinor" Width='<%# SetLblMinorWidth((double)Eval("CovPercentage"))%>' >&nbsp;</asp:Label>      
                            </td>
                        </tr>
                    </table>
                    
                </ItemTemplate> 
            </asp:TemplateField>               
             <asp:BoundField DataFormatString="{0:0.00}" DataField="AvgLnsMtds" HeaderText="Average Lines / Method" HtmlEncode="false" HeaderStyle-Wrap="true" HeaderStyle-Width="185" ItemStyle-HorizontalAlign="Center"/>         
            
        </Columns>
  </asp:GridView>  <br />
  
  <asp:GridView ID="gvNmsLvlClassesReport" runat="server" CssClass="GridViewMetricsStyle" 
          AutoGenerateColumns="False" GridLines="Both" AllowSorting="True" 
         onrowcreated="gvNmsLvlClassesReport_RowCreated" 
         onsorting="gvNmsLvlClassesReport_Sorting" 
         onrowdatabound="gvNmsLvlClassesReport_RowDataBound">
     <RowStyle CssClass="GridRowStyle" />
                            <FooterStyle CssClass=""  />
                            <PagerStyle CssClass="" HorizontalAlign="Center"  />
                            <SelectedRowStyle CssClass=""  />
                            <HeaderStyle CssClass="GridViewAggregateHeaderStyle"  />
                            <EditRowStyle CssClass="" />
                            <AlternatingRowStyle CssClass="GridAlternateRowStyle"  />  
                             <Columns>          
            
            
            <asp:TemplateField HeaderText="Class Name" HeaderStyle-Wrap="true" HeaderStyle-Width="400" SortExpression="Classname" ItemStyle-HorizontalAlign="Left">
                <ItemTemplate>
                 <table class="" >
                        <tr>
                            <td align="left" style="width:380px"  >
                                <asp:HyperLink ID="lnkClsName" runat="server" Text='<%# TruncateFewCharacters((string)Eval("Classname"))%>' NavigateUrl='<%# String.Format("../ContentPages/ClassLvlMethodReport.aspx?mod1={0}&nName={1}&clsName={2}&rptLink={3}", Eval("ModuleName"), Eval("NamespaceName"), Eval("Classname"),XMLPath) %>'></asp:HyperLink>                                   
                            </td>
                             <td style="width:20px">                               
                                 
                            </td>
                            
                        </tr>
                    </table>           
                </ItemTemplate> 
            </asp:TemplateField>             
            <asp:TemplateField HeaderText="Total Coverage" HeaderStyle-Wrap="true" HeaderStyle-Width="200" SortExpression="CovPercentage" ItemStyle-HorizontalAlign="Right">
                <ItemTemplate>
                    <table class="" >
                        <tr>
                            <td style="width:50px" runat="server" id="tdTotCov" >
                                <asp:Label ID="lbltotcov" runat="server" text='<%# TruncateDouble((double)Eval("CovPercentage"))%>'></asp:Label> 
                            </td>
                            <td style="width:150px" align="right" >
                                <asp:Label ID="lblMajor" runat="server" CssClass="LabelMajor"  Width='<%# SetLblMajorWidth((double)Eval("CovPercentage"))%>'>&nbsp;</asp:Label><asp:Label ID="lnlMinor" runat="server" CssClass="LabelMinor" Width='<%# SetLblMinorWidth((double)Eval("CovPercentage"))%>' >&nbsp;</asp:Label>      
                            </td>
                        </tr>
                    </table>
                    
                </ItemTemplate> 
            </asp:TemplateField>      
              
            
             <asp:BoundField DataFormatString="{0:0.00}" DataField="AvgLnsMtd" 
                                     HeaderText="Average Lines / Method" HtmlEncode="false" HeaderStyle-Wrap="true" SortExpression="AvgLnsMtd" HeaderStyle-Width="185" ItemStyle-HorizontalAlign="Center" > 
         
                                 </asp:BoundField>         
           
        </Columns>
  </asp:GridView>  
  </ContentTemplate>
  </asp:UpdatePanel> 
     
 </div>
 </div>
          <!-- right bottom -->
          
       
  
  
</asp:Content>

